package kr.hkit.myframework;

import java.sql.Connection;

import kr.hkit.myframework.db.ConnectionFactory;
import kr.hkit.myframework.db.DBProperties;

public class TestMain {
	public static void main(String[] args) {
		String filePath = "dbcon.xml";
		 String driver = "com.mysql.jdbc.Driver"; 
 		 String url ="jdbc:mysql://localhost:3306/erp"; 
		 String user = "root";
		 String password = "1111";
		 
		 DBProperties.savePropertis(filePath,driver, url, user, password);
		 DBProperties.prnProperties(DBProperties.loadPropertis("dbcon.xml"));
		 
		 Connection con = ConnectionFactory.getConnection();
	}
}
